const routers = [{
    path: '/',
    redirect: {
      name: "homePage"
    }
  },
  {
    path: '/login', // 首页
    name: 'login',
    component: () => import("@/views/common/login.vue")
  },
  {
    path: '/homePage', // 首页
    name: 'homePage',
    component: () => import("@/views/HomePage")
  },
  {
    path: '/personalResources', //个人资源
    component: () => import("@/views/personalResources/personalResources.vue"),
    children: [{
        path: 'realTimeRecording', //实时录制
        name: "realTimeRecording",
        component: () => import("@/views/personalResources/realTimeRecording.vue"),
      },
      {
        path: 'transcoding', //实时转码
        name: "transcoding",
        component: () => import("@/views/personalResources/transcoding.vue"),
      },
      {
        path: 'mediumFile', //媒体文件
        name: "mediumFile",
        component: () => import("@/views/personalResources/mediumFile.vue"),
      },
      {
        path: 'documentFile', //文档资源
        name: "documentFile",
        component: () => import("@/views/personalResources/documentFile.vue"),
      },
      {
        path: 'imageFile', //图片资源
        name: "imageFile",
        component: () => import("@/views/personalResources/imageFile.vue"),
      },
      {
        path: 'recycleBin', //回收站
        name: "recycleBin",
        component: () => import("@/views/personalResources/recycleBin.vue"),
      },
      {
        path: 'favorite', //收藏夹
        name: "favorite",
        component: () => import("@/views/personalResources/favorite.vue"),
      },
      {
        path: '',
        redirect: '/personalResources/realTimeRecording',
      },
    ]
  },
  {
    path: '/cloudResources', //云端资源
    name: 'cloudResources',
    component: () => import("@/views/cloudResources/cloudResources.vue")
  },
  {
    path: '/contentEditing', //内容编辑
    name: 'contentEditing',
    component: () => import("@/views/contentEditing/contentEditing.vue")
  },
  {
    path: '/userManage', //用户管理
    component: () => import("@/views/userManage/userManage.vue"),
    children: [{
        path: 'userManagement',
        name: "userManagement",
        component: () => import("@/views/userManage/userManagement.vue"),
      },
      {
        path: 'accountSecurity',
        name: "accountSecurity",
        component: () => import("@/views/userManage/accountSecurity.vue"),
      },
      {
        path: '',
        redirect: '/userManage/userManagement',
      },
    ]
  },
  {
    path: '/operationManagemet', //运维管理
    component: () => import("@/views/operationManagemet/operationManagemet.vue"),
    children: [{
        path: 'deviceManagement', //设备管理
        name: "deviceManagement",
        component: () => import("@/views/operationManagemet/deviceManagement.vue"),
      },
      {
        path: 'systemConfiguration', //系统配置
        name: "systemConfiguration",
        component: () => import("@/views/operationManagemet/systemConfiguration.vue"),
      },
      {
        path: '',
        redirect: '/operationManagemet/deviceManagement',
      },
    ]
  },
]
export default routers